/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fullalbum.bean;

import java.io.Serializable;

/**
 *
 * @author leoomoreira
 */
public class Figure implements Serializable {

    private Integer albumId;
    private String id;

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof Figure) {
            Figure figure = (Figure) obj;
            if (getAlbumId().intValue() == figure.getAlbumId().intValue() && getId().equalsIgnoreCase(figure.getId())) {
                return true;
            }
        }
        return false;
    }

    public Integer getAlbumId() {
        return albumId;
    }

    public void setAlbumId(Integer albumId) {
        this.albumId = albumId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    
}
